package com.cwj.user.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

@RestController
public class testController {
    @Resource
    private HttpSession session;

    @RequestMapping("/aa")
    private String aa(){
        System.out.println(session.hashCode());
        return "aa";
    }
    @RequestMapping("/bb")
    private String bb(){
        System.out.println(session.hashCode());
        return "aa";
    }
}
